package c.h.a.m0;

import androidx.appcompat.app.AppCompatActivity;
import c.h.a.b0.m;

/* compiled from: lambda */
public final /* synthetic */ class f implements Runnable {
    public final /* synthetic */ AppCompatActivity a;
    public final /* synthetic */ m b;

    public /* synthetic */ f(AppCompatActivity appCompatActivity, m mVar) {
        this.a = appCompatActivity;
        this.b = mVar;
    }

    /* JADX WARNING: Missing block: B:16:?, code skipped:
            r5.close();
     */
    public final void run() {
        /*
        r10 = this;
        r0 = r10.a;
        r1 = r10.b;
        r2 = new java.text.SimpleDateFormat;
        r3 = java.util.Locale.US;
        r4 = "yyyyMMdd-hh:mm:ss";
        r2.<init>(r4, r3);
        r3 = java.lang.System.currentTimeMillis();
        r3 = java.lang.Long.valueOf(r3);
        r2 = r2.format(r3);
        r3 = "deviceinfo_";
        r4 = ".txt";
        r3 = c.b.a.a.a.E(r3, r2, r4);
        r4 = new java.io.File;
        r5 = c.h.a.x.r.d;
        r4.<init>(r5, r3);
        r5 = c.h.a.m0.j.e(r5);
        r6 = 0;
        if (r5 != 0) goto L_0x0030;
    L_0x002f:
        goto L_0x0097;
    L_0x0030:
        r5 = c.h.a.m0.j.b(r4);
        if (r5 != 0) goto L_0x0037;
    L_0x0036:
        goto L_0x0097;
    L_0x0037:
        r5 = new java.io.BufferedWriter;	 Catch:{ IOException -> 0x0096 }
        r7 = new java.io.FileWriter;	 Catch:{ IOException -> 0x0096 }
        r7.<init>(r4);	 Catch:{ IOException -> 0x0096 }
        r5.<init>(r7);	 Catch:{ IOException -> 0x0096 }
        r4 = "---------%s---------";
        r7 = "--%s--";
        r8 = "------Device Info------";
        r5.write(r8);	 Catch:{ all -> 0x008a }
        r5.newLine();	 Catch:{ all -> 0x008a }
        r8 = new java.lang.StringBuilder;	 Catch:{ all -> 0x008a }
        r8.<init>();	 Catch:{ all -> 0x008a }
        r9 = "date:";
        r8.append(r9);	 Catch:{ all -> 0x008a }
        r8.append(r2);	 Catch:{ all -> 0x008a }
        r2 = r8.toString();	 Catch:{ all -> 0x008a }
        r5.write(r2);	 Catch:{ all -> 0x008a }
        r5.newLine();	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.F(r5, r4);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.L(r5, r4);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.E(r5, r4);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.G(r5, r4, r7);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.J(r5, r4, r7);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.C(r5, r4);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.H(r5, r4);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.D(r5, r4, r7);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.M(r5, r4);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.I(r5, r4, r7);	 Catch:{ all -> 0x008a }
        c.f.a.a.a.a.B(r5, r4);	 Catch:{ all -> 0x008a }
        r5.close();	 Catch:{ IOException -> 0x0096 }
        r6 = 1;
        goto L_0x0097;
    L_0x008a:
        r2 = move-exception;
        throw r2;	 Catch:{ all -> 0x008c }
    L_0x008c:
        r4 = move-exception;
        r5.close();	 Catch:{ all -> 0x0091 }
        goto L_0x0095;
    L_0x0091:
        r5 = move-exception;
        r2.addSuppressed(r5);	 Catch:{ IOException -> 0x0096 }
    L_0x0095:
        throw r4;	 Catch:{ IOException -> 0x0096 }
    L_0x0097:
        r2 = c.h.a.m0.h.q(r0);
        if (r2 == 0) goto L_0x009e;
    L_0x009d:
        goto L_0x00a6;
    L_0x009e:
        r2 = new c.h.a.m0.d;
        r2.m2070init(r0, r6, r3, r1);
        c.h.a.m0.p.a.b(r2);
    L_0x00a6:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.h.a.m0.f.run():void");
    }
}
